﻿
@{
    ViewData["Title"] = "HumitureAdd";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


@section Head{
    <link href="~/layuiadmin/style/style.css" rel="stylesheet" />
}

<form class="layui-form layui-form-pane" action="" style="padding: 20px;">
    <div class="layui-form-item">
        <div style="float: left;width: 45%;">
            <label class="layui-form-label">所属部门</label>
            <div class="layui-input-block">
                <select name="city" lay-verify="required">
                    <option value="0">档案室</option>
                    <option value="1">技术部</option>
                    <option value="2">审计处</option>
                    <option value="3">办公室</option>
                    <option value="4">综合处</option>
                </select>
            </div>
        </div>

        <div style="float: right;">
            <label class="layui-form-label">库房名称</label>
            <div class="layui-input-inline" style="margin-right: 0;">
                <input type="text"  placeholder="" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div style="float: left;">
            <label class="layui-form-label">检查时间</label>
            <div class="layui-input-inline" style="margin-right: 0;">
                <input type="text"  placeholder="" autocomplete="off" class="layui-input" id="Checktime">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div style="float: left;">
            <label class="layui-form-label">湿度</label>
            <div class="layui-input-inline" style="margin-right: 0;">
                <input type="text"  placeholder="" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div style="float: right;">
            <label class="layui-form-label">温度</label>
            <div class="layui-input-inline" style="margin-right: 0;">
                <input type="text"  placeholder="" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea name=""  class="layui-textarea" style="height: ;"></textarea>
        </div>
    </div>
</form>

<script>
    window.onload = function () {
        layui.use('form', function () {
            var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功
        });

        layui.use('laydate', function () {
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#Checktime',//指定元素
                type: 'datetime'
            });
        })
    }
</script>